all: 
	vcs +v2k -o npAES *.v

aes:
	vcs +v2k -o aes aestester.v aespipe.v aescontrol.v add_roundkey.v first_round.v flipflop.v key_expansion.v last_round.v mix_columns.v mult_by2.v mult_by3.v pipereg.v register.v rotword.v sbox.v shift_rows.v std_round.v sub_bytes.v gen_key1.v gen_key2.v gen_key3.v gen_key4.v gen_key5.v gen_key6.v  gen_key7.v gen_key8.v gen_key9.v gen_key10.v

leda:
	leda +v2k *.v

vvp:
	vvp npAES
	
control:
	vcs +v2k -o ctrl control.v flipflop.v inputselector.v keyselector.v pipereg.v


clean:
	rm -rf csrc *.key *.log *.dump dumpfiles/* simv* crypto npAES ctrl crypto.daidir *.daidir aespipe aestester.dump
